set(CMAKE_SYSTEM_NAME linux)
set(ARCH rk3588)
set(THIRD third/${ARCH})
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(TARGET_SOC rk3588)

set(CMAKE_C_COMPILER aarch64-none-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER aarch64-none-linux-gnu-g++)
set(X264_PATH /opt/data/libs/x264/${ARCH})
set(X265_PATH /opt/data/libs/x265/${ARCH})
set(OPENCV_PATH /opt/data/libs/opencv4/${ARCH})
set(QT_PATH /opt/data/libs/qt5.7.1/qt5-arm)
set(QT_LIBS Qt5Widgets Qt5Core)
set(OPENCV_LIBS)
set(COAP_PATH /opt/data/libs/libcoap/c600)
set(COAP_LIB coap-2)
set(MOSQ_PATH /opt/data/libs/libmosquitto-1.4.7/c600)
set(LIBCURL_PATH /opt/data/libs/libcurl/c600)
set(SQLITE3_ROOT ${THIRD}/sqlite3)
set(OPENSSL_ROOT ${THIRD}/openssl-3.1.6)
set(LGVL_ROOT ${THIRD}/lvgl-9.2)
set(ZLIB_ROOT ${THIRD}/zlib-1.3.1)
set(LIBPNG_ROOT ${THIRD}/libpng-1.6.44)
set(LIBJPEGTURBO_ROOT ${THIRD}/libjpeg-turbo-3.0.4)
set(LIBYUV_ROOT ${THIRD}/libyuv)
set(RKNN_ROOT ${THIRD}/rknn)
set(RKRGA_ROOT ${THIRD}/rkrga)
set(STBIMAGE_ROOT ${THIRD}/stb_image)
set(WITH_GCC_HIGH ON)

add_definitions(-DRK3588)